package com.itmuch.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Scope;



/*
 *   禁用单个FegionClient的Hystrix的支持
 *       1.添加fallback=HystrixClientFallback.class
 *       2.对Configurationl2禁止
 *       3.添加注解@Scope("prototype")
 * 		 4.关掉服务提供者，UsedrFeignClient可以使用hystrix,FeignClient2无法使用hystrix
 * */


@EnableFeignClients
public class ConsumeFeigncustmizingwithHystrixApplication {
	public static void main(String[] args) {
		SpringApplication.run(ConsumeFeigncustmizingwithHystrixApplication.class, args);
	}
}
